# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-clone
_pkgname=Clone
pkgver=0.46
pkgrel=2
pkgdesc="Clone perl module"
url="https://metacpan.org/release/Clone"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-b-cow"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GA/GARU/Clone-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
f8bb1010364e94c7cc8bba25681cd9fd737ec2935a8be960ac53099359729fc679190a115dd082fccd239b35762dee2b3be3adbddce37e4ceae6fe934fbad545  Clone-0.46.tar.gz
"
